package org.zoomdev.zoom.common.caster;

import org.junit.Test;
import org.zoomdev.zoom.common.json.JSON;
import org.zoomdev.zoom.common.utils.DataObject;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class CasterTestWithMap {


    @Test
    public void test() {
        Map<String, Object> data = new HashMap<>();
        DataObject result = Caster.to(data, DataObject.class);
    }

    @Test
    public void test2() {
        Map<String, Object> data = new HashMap<>();
        TreeMap result = Caster.to(data, TreeMap.class);
    }


    @Test
    public void test3() {
        Map<String, Object> data = new HashMap<>();
        TreeMap result = Caster.to(JSON.stringify(data), TreeMap.class);
    }
}
